Creation of a better dialog box