made window open in center of screen