adjust the creating window