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