enable detect sensor orientation