adding levels-change event to undo/redo