Change supported orientations list, code cleanup