iterate_pages_and_create_sections