added dialog box escape