moves hiding and showing of itemControls from event handler to css