changes in controller
Added changes to the view and its template