toggle warning on/off on launch/Exit