refractoring css for label functionality sanitation basic layout