got the dialog box to work