Undo and redo button are disabled if there is nothing to undo or redo