add localstorage function