added pref dialog