Make next and previous buttons work nicely on leaderboard