make bracket span change undoable