added http post functions to admin controller