forbidden to cancel the dialog, otherwise isVisible = false forever.