HTML and JSON view rendering