got dialogs positioning correctly