save settings to the user preference file