working on pagination without saving to the database