add localstorage management