fix(pagination): changed the pagination function to static to avoid a notice