     @ui.all_row.toggleClass 'auto-complete-search-list-active', allFilled
     @ui.new_row.toggleClass 'auto-complete-search-list-active', newFilled
 
-    @$('.auto-complete-search-list-last-rounded-both').removeClass 'auto-complete-search-list-last-rounded-both'
-    @$('.auto-complete-search-list-last-rounded-right').removeClass 'auto-complete-search-list-last-rounded-right'
+    @ui.search_list_both.removeClass  'auto-complete-search-list-last-rounded-both'
+    @ui.search_list_right.removeClass 'auto-complete-search-list-last-rounded-right'
 
     if newFilled
       @ui.new_row.addClass 'auto-complete-search-list-last-rounded-both'

    all_row: '.js-row-all'
    new_row: '.js-row-new'

  onRender: -> @updateRows()

  appendHtml: (collectionView, itemView, index) ->

    @updateRows()

  updateRows: ->
    myFilled  = @$('.js-list-my li').length > 0
    allFilled = @$('.js-list-all li').length > 0
    newFilled = @$('.js-list-new li').length > 0

