refactoring the CSS