save status of task