       ApiGet.congress "districts/locate?latitude=#{$scope.position.coords.latitude}&longitude=#{$scope.position.coords.longitude}", $scope.setDistrict, this
 
     $scope.findDistrictByZip = () ->
-      ApiGet.congress "districts/locate?zip=#{$scope.selected_zip}", $scope.setDistrict, this, $scope.selected_zip
-
-    $scope.setDistrict = (error, data, zip) ->
+      ApiGet.congress "districts/locate?zip=#{$scope.selected_zip}", $scope.setDistrict, this
+
+    $scope.setDistrict = (error, data) ->
       if not error
         unless data.length
           return $scope.warning = "No district was found for #{$scope.selected_zip}."
         $scope.state_district = {state: data[0].state, district: data[0].district}
-        $scope.selected.zip = zip
-        $scope.selected.state = data[0].state
-        $scope.selected.district = data[0].district
       else console.log "Error: ", error
 
     $scope.setDistrictData = (newVals, oldVals) ->

          else
            district_id = d3.select(this).text()
            $scope.state_district = {state: district_id.slice(0, 2), district: district_id.slice(3, 6)}
            $scope.selected.state = district_id.slice(0, 2)
            $scope.selected.district = district_id.slice(3, 6)
            $scope.$apply()
        )
        $scope.usMap.append("path").attr("class", "district-boundaries").attr("clip-path", "url(#clip-land)").datum(topojson.mesh(congress, congress.objects.districts, (a, b) ->

    $scope.defaultFocus()

    $scope.$watch('state_district', (newVals, oldVals) ->
      if $scope.state_district.state and !$scope.state_district.district
        if not $scope.state_district.district 
          for state in ["AK", "DE", "MT", "ND", "SD", "VT", "WY"]
            if $scope.state_district.state is state
              $scope.state_district.district = "0"
          if not $scope.state_district.district then $scope.state_district.district = "1"
      if $scope.state_district.state and $scope.state_district.district
        $scope.setDistrictData(newVals, oldVals)
        $scope.highlightDistrict()
    , true)


    $scope.$watch('district_reps', (newVals, oldVals) ->
      if $scope.district_reps.length and $scope.state_district.state
