adding admin function but not finished yet