break css into it's own function