bug fix in link-to + test html template