Thanks @justsomeguy... while I like to think I know what I'm doing, the more I learn the less I know
I suggested I have to rethink this thing as the dialog box or window needs to show different info based on which button was clicked.
So that means I can't create the dialog when the main window shows as the info in that dialog will be static.
Guess I could use AJAX to update the dialog but I'm thinking it's probably best to build the dialog on the fly when the user clicks on a button.
So it's back to square one for me and trying to find good examples of what I want to do.
Thanks again for you help and feel free to throw more great ideas please.