got the dialog to mostly work