update tops of pages