save settings to localStorage