save settings only if modified