add missing hrefs and prevent page refresh on click