window opening position
some unimportant changes in codes.