click on thumbnail to view image