fixed admin functionality