fixed orientation bugs causing the alert to display in the wrong orientation