generate dialog box works, added+commented out clipboard code