             return operator
 
         getValue: ->
-            from_text = @$('.range-from').val()
-            from_date = @$('.range-from').data('datepicker').getFormattedDate()
+            from_text = @ui.lowerBound.val()
+            from_date = @ui.lowerBound.data('datepicker').getFormattedDate()
 
-            to_text = @$('.range-to').val()
-            to_date = @$('.range-to').data('datepicker').getFormattedDate()
+            to_text = @ui.upperBound.val()
+            to_date = @ui.upperBound.data('datepicker').getFormattedDate()
 
             value = []
 

            return @model.id

        getOperator: ->
            from = @$('.range-from').val()
            to = @$('.range-to').val()
            operator = ''

            if from != "" and to != ""


            @inOutSelect.render().$el.prependTo(@$el)
            @$('.help-block').hide()
            @ui.lowerBound.datepicker({'autoclose': true})
            @ui.upperBound.datepicker({'autoclose': true})

            @set(@context)

