made the window appear in the center of the screen