         inputs.filter("[name='i']").val(opts.scales[0])
         inputs.filter("[name='r']").val(opts.scales[1])
         inputs.filter("[name='g']").val(opts.scales[2])
+      
+      inputs.filter("[name='min']").val(opts.sliderMin or 0)
+      inputs.filter("[name='max']").val(opts.sliderMax or 1000)
   
   render: =>
     @$el.html @template 

  
  initialize: =>
    @model.tool.on 'swviewer:loaded', =>
      @$el.find('#gri').click()
      opts = @model.tool.opts
      console.log opts
      # Update UI elements
      inputs = @$el.find('input[type="range"]')
      inputs.filter("[name='alpha']").val(opts.alpha) if opts.alpha?

    min = @$el.find('[name="min"]').val()
    max = @$el.find('[name="max"]').val()
    
    @model.tool.settings({sliderMin: min, sliderMax: max})
    
    # Scale to gMin and gMax
    opts = @model.tool.opts
    gMin = opts.gMin
