got dialogs working