Hi Joe, if you want to have a "done" type button on your dialog you can have it trigger a UI event itself like this:
onclick="moi.ui.fireUIEvent( 'done' );"
This is done automatically for controls inside of the command UI (they generate a UI event using their id="" value) but you can also trigger it directly as well.
I know you must be super busy and appreciate your help, still trying to learn and still digging and finding a treasure of information in the forums. So just to add my grain of sand I started to document things in GitHub. It is still in its early stages, I'm mainly just dumping stuff, but hopefully, it will take form.