json and html response in controller