Change all pages to one method of fetching data