added admin panel functions