added localstorage and setter and getter