created real views, made productscontroller respond to html and json requests differently