repaired links in template