implemented cliend local storage for settings