css and refactoring