Add a signal to track undo/redo state