refactors inline styling to css files