update local storage