Added method in controller to save response