Preferences window controller for osx app