task state update