RE: Handling dialog messages for non-template based dialogs