Change Pagination to not use the shadow dom