dialogs functioning, but ugly