reworked dialogs a bit