remove header and footer stuff from index