pagination and sorting are actually working