fixed #4 center all dialogs