fix to views -- change to use response.json rather than using response.content