Added Next and Prev function for stats table and sidebar widget