update localstorage data