update controller and task model