Add event listner to thumbnail view - now when click on thumbnails img in primary view changes to that thumbnail