refactored .css functions