added set admin function