Add onClick attribute to links in widgets