added a dialog box