add onThumbnailClick event