       ary.push data
     # 3. Sorting
     ary.sort( @predicateBy("volume") )
-
-  noticeProcessingAjax: ->
-    R.div
-      className: "alert alert-warning"
-      R.i
-        className: "fa fa-cog fa-spin fa-3x"
-      R.div null,
-        "Processing... If this is taking long, please make sure you are online."
-
-  chartsPanel: ->
-    R.div
-      className: "panel panel-blue"
-      R.div
-        className: 'panel-heading'
-        R.div
-          className: "row"
-          R.div
-            className: "col-xs-3"
-            R.div
-              className: "fa fa-home fa-5x"
-          R.div
-            className: "col-xs-9 text-right"
-            R.div
-              className: 'huge'
-              "Total: #{@totalVolume()}"
-            R.div null,
-              "cubic feet"
-      R.div
-        className: 'panel-body'
-        R.div
-          className: 'row text-center'
-          R.div
-            className: 'col-sm-6'
-            React.createElement BarChartCanvas,
-              ref: "bar"
-          R.div
-            className: 'col-sm-6'
-            React.createElement PieChartCanvas,
-              ref: "chart"
-
-  render: ->
-    R.div
-      className: "app_wrapper"
-      @noticeProcessingAjax() if @state.ajax
-
-      R.h2 null, "Moving volume overview"
-      R.div
-        className: 'row'
-        R.div
-          className: 'col-sm-12'
-          @chartsPanel()
-
-      R.hr null
-
-      R.h2 null, "Add a new item"
-      React.createElement NewMovingRecordForm,
-        handleNewRecord: @addRecord
-        roomSuggestions: @props.roomSuggestions
-        categorySuggestions: @props.categorySuggestions
-      R.hr null
-
-      React.createElement Records,
-        records: @state.records,
-        handleDeleteRecord: @deleteRecord,
-        handleUpdateRecord: @updateRecord


  getDefaultProps: ->
    records: []

  # Draw the charts after the component has been rendered.
  componentDidMount: ->

    canvas = React.findDOMNode(@refs.chart)
    ctx    = canvas.getContext("2d")
    chartInstances["pieChart"] = new Chart( ctx ).Pie(@dataForPieChart())

  shuffleArray: (o) ->
    i = o.length
