Refactoring css calls