refactoring for larger screens