adding thumbnails and url automatically