function return the task to the work, add task update