Install mode-watcher, add ModeWatcher to root layout, create toggles with toggleMode/setMode/resetMode functions.