fixed centering of dialogs