saving edit changes, but doesn't handle added/deleted nodes