Changes to PagesRepository and PagesInterface