         initialize: (options) ->
             @model = options.model
 
+            @model.stats.on 'reset', =>
+                @statsMin = _.find(@model.stats.models, (stat) ->
+                    return stat.get('label') == 'Min'
+                )?.get('value')
+
+                if @statsMin? and not @ui.lowerBound.val()
+                    @ui.lowerBound.val(@statsMin)
+
+                @statsMax = _.find(@model.stats.models, (stat) ->
+                    return stat.get('label') == 'Max'
+                )?.get('value')
+
+                if @statsMax and not @ui.upperBound.val()
+                    @ui.upperBound.val(@statsMax)
+
         ui:
             inOutSelect: '.btn-select'
+            lowerBound: '.range-from'
+            upperBound: '.range-to'
 
         onRender: ->
             @inOutSelect = new button.ButtonSelect

            return operator

        getValue: ->
            from_text = @$('.range-from').val()
            from_num = new Number(from_text)

            to_text = @$('.range-to').val()
            to_num = new Number(to_text)

            value = []

            return @model.id

        getOperator: ->
            from = @ui.lowerBound.val()
            to = @ui.upperBound.val()
            operator = ''

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