added caching of thumbnails and urls