paging works

Will need a different solution for production