Made undo/redo disablable/enablable