give the dialog as a parent