Fixed callback for two dialogs at once and changed to allow htmlmessages