modify the task status