Formatted the modal dialog box properly