Added support for dialogs.  jmDialogSvc