 
   setSelectedCompAndPopulateLocs: (fd_view, selected_compId,
                                    selected_locId = '', selected_divId = '') ->
-    this.selected_comp = Formbuilder.options.COMPANY_HIERARCHY.getHashObject(
+    @selected_comp = Formbuilder.options.COMPANY_HIERARCHY.getHashObject(
       selected_compId)
-    this.clearSelectFields(fd_view.model.attributes.cid)
-    this.populateLocations(
+    @clearSelectFields(fd_view.model.attributes.cid)
+    @populateLocations(
       fd_view, this.selected_comp, selected_locId, selected_divId)
 
   populateLocations: (fd_view, selected_comp,

          selected_locId = this.getSelectedFieldVal($location_id, field_values)
        if $division_id
          selected_divId = this.getSelectedFieldVal($division_id, field_values)
      this.populateCompanies(fd_view, selected_compId,
                             selected_locId, selected_divId)

  getSelectedFieldVal: ($ele, fieldValues) ->
    do(name = '', selectedId='') =>

        locations = selected_comp.locations

      if($location_id && locations.length > 0)
        @addPlaceHolder($location_id, '--- Select ---')
        @appendData($location_id, locations)
        if selected_locId && selected_locId != ''
          $location_id.val selected_locId
          @setSelectedLocAndPopulateDivs(fd_view, selected_locId,
                                             selected_divId)

  populateDivisionsByLocId: (e) ->
    do(selected_location_id = $(e.currentTarget).val(),
      that = e.data.that,
      fd_view = e.data.fd_view
    ) =>
      that.setSelectedLocAndPopulateDivs(fd_view, selected_location_id)

  setSelectedLocAndPopulateDivs: (fd_view, selected_locId,
                                  selected_divId = '') ->
    do(selected_loc = null)=>
      selected_loc = @selected_comp.locations.getHashObject(selected_locId)
      @populateDivisions(fd_view, selected_loc, selected_divId)

  populateDivisions: (fd_view, selected_loc, selected_divId = '') ->
    do( divisions = [],
