added set admin logic