#2: implemented click on thumbnail.