fixed alot of broken links and added the template to the index