added crude functions for admin controller