a little of css a little of refactoring