refactored template files to have index only contain header and footer includes.