working on prefs window