refactoring, preventing landscape orientation