modifs pagination
update Pagination. Works almost perfectly. Active not changing.