Neural circuit perturbations during attention switching