persist edits in localstorage