Changing the index to header and footer sections