refactoring stylesheets and html content