added pagination of results