Changes made for admin functionality