new prefs and quitApp added