fixed all links, added template to header