Dynamics of cognitive control in task switching door