click on thumbnail to view photos