update localstorage