dialog box now works good.