change task manager to follow the pattern