add toggleControlsActive function