html refactor