Preferences dialog in GUI.