admin. js fixes

Okay here's all the admin stuff restored...