admin manage function but is not completely finished