added mode switcher, begin with settings window