update status of task