Making all the windows open at correct locations.