refactor the style elements into a css file