updated all functions and thumbnails appear and disappear when clicked on