refactor html