More work on dialogs