added json model to controller