Changed the es queries to use the page parameter