html refactoring