added some api stuff, added admin area