adding classes to index and removing unused hrefs