added the admin panel functionality