improved dialog box