added CancelDialogBox method