first bit of api wired to angular
some more templating