VS-19 Update the Undo/Redo buttons and disable unused buttons