Updated the dropdown thumb nail code to be on click