add methods to enable and disable undo and redo buttons