initial work on prefs dialog