simplify code and css