refactor link_html