correct window orientation