save configuration in localStorage