Changed enable statements for undo and redo buttons