creating the success dialog box