cleanup of admin.js to hide internal state