Refactor utilities html