add functions in ranking list such that ranking list can change when click buttons