adding endpoint for fetching pages