Refactoring layout styles