addition to center the progress dialog in main window