add css styles on the fly