updated the controller