WIP on pagination, but i broke everything :(