try to make save and pref dialog the active window