Fixed bug with admin menus.
Removed test code.