remove isDialogOK check