added json elements to the view