first working version of dialog box
got dialog.js back