angular controller, router, main, and templates set up