update task statuses