added some functionality to the admin page