add admin panel function