added leaderboard API functionality, incorporated to leaderboard UI