Undo and Redo buttons grey out if there's nothing to undo or redo

As per the title.