Refactor RankingsFragment