added console message for undo and redo