Only call the event if the controls are visible