creating window at the center