Added functions in admin controller