added on/off switch in the settings window