more admin stuff. including some javascript for UI admin pages