changed the controller and view