fix headings and page number