sets up the angular controller and route