Preferences window implemented