Undo handles multi-panel edits and selection