commit localstorage