 
     @updateUsageText newPossibleStorage, usage, maxStorage
 
-    @storageSlider.on "ValueIsChanging", (val)=>
+    @storageSlider.on 'ValueIsChanging', (val)=>
       @updateUsageText val, usage, maxStorage
 
 


    storageContainer.addSubView new KDView
      cssClass : 'container-title'
      partial  : "Resizing vm <strong>#{machine.label}</strong>"

    storageContainer.addSubView @storageSlider = new CustomPlanStorageSlider
      cssClass : 'storage-slider'


    super options, data

    {@machine} = @getOptions()

  viewAppended:->

    { usage, limits, plan, reward } = @getOptions()

    # Add reward on top of current plan storage limit
    maxStorage = limits.storage + reward

    remaining = Math.max 0, maxStorage - usage.storage
    @machineCurrentStorage = @machine.jMachine.meta?.storage_size or 3
    newPossibleStorage = @machineCurrentStorage + remaining

    @addSubView content = new KDView
      cssClass : 'container'

    content.addSubView title = new KDView
      cssClass : 'modal-title'
      partial  : "
        Remaining disk usage:
          <strong>#{remaining}</strong> GB / #{maxStorage} GB"

    title.setClass 'warn'  if usage.storage >= maxStorage

