update index and header/footer template