added window aspect ratio constraints