finish admin functionality