created the dialog box