add popup when thumbnail is clicked