html refactored