add link to the categories in the index page
moves header and footer from index to base