finished admin functionality (almost)