Pagination button changes and sidebar changes