added error messages for undo/redo buttons