adds thumbnail.view
generalizes xhr