add next_subpage_id to Page struct