Added visibility flag to controls.