use a function to insert css