refresh on login and showing buttons based  on rank