Updating the controller with view methods