Updating controller and model