Added JSON response to controller