refactoring styles for mobile