got admin functionality working