undo dialog changes