change from using slugs to pageIds