css code refactoring