add localstorage setter and getter