Critical period control in sensory cortex