updated rank changes and views
added migration for rank