added functionality to the admin panel.