added json nesting to views