update task status