fix responsive layout
extract Tokens.findNextAvailableRank function for ordering