changes on controller and added view file