moved app admin function to app admin controller from app controller