save settings on change.