Add update task status when task switching