working on dialog box