added func to admin panel