Fix admin panel and fix getting role function