Change page function to return a list of objects instead of deferred