adding CSS function