moved links to the top of the page
added function to load from templates