update header, footer, index