make the dialog box work