MainWindow: some work on the dialogs
PreferencesManager: new values saved