realize function of query user's rank and display