Added some comms between UI elements to disable undo/redo links at appropriate times.