adds class links to index