[GUI] Undo/Redo now changes to the modified tab