Dialog windows open conditionally

So now we don't expect an optional `bodyHtml`—we always use a function call that is in the dialog object.