only connect if the dialog is accepted.  oops