added json response to controller