Created cross-platform compatible confirmation dialog.