Each button for the top pagination bar is working backwards adn fordwards