undo diagram