managed to get admin functionality working