Made the alert messages work for the ranking page