fixed admin page errors