added ranking page
fix ranking logic