Title: Theory of activity gated attention in the visual cortex