window is positioned in the middle of the screen