switching the enabled/disabled flags