Added CancelOnOutsideClick for dialogs