Added centering to the main window