Enable/Disable Undo and Delete buttons when there's something/nothing to do