added localstorage for setttings page