Update the code of RankingControl