It seems like the config is saved when i close the app, it would be better if it saves the config when i press the ok button in the dialog!