added thumbnails funtionality