refactored html