thumbnails and json data showing up after fixing controller