functions, and appends links to index page