added prefs and panel