Confirm dialog now uses separate fun callback when closing dialog using "x" at top right corner.