made dialogs a little more sophisticated