set up angular controller, routes, and template.