Positioned the windows properly according to page