refactoring code about rendering link
rename function as_html() -