 
       store = @get('controller.store')
       updatedFigures = _.map data.result.figures, (figure) ->
-        store.createRecord 'figure', figure
+        store.push 'figure', figure
 
-      @figures.pushObjects updatedFigures
+      @get('figures').pushObjects updatedFigures
+
+  ).on('didInsertElement')

        progress: 0
        progressBarStyle: "width: 0%;"


    uploader.on 'fileuploadprogress', (e, data) =>
      currentUpload = @uploads.findBy('filename', data.files[0].name)
      progress = parseInt(data.loaded / data.total * 100.0, 10) #rounds the number

ETahi.FigureOverlayView = ETahi.OverlayView.extend
  templateName: 'overlays/figure_overlay'
  layoutName: 'layouts/no_assignee_overlay_layout' #TODO: include assignee here?
  uploads: []
  figures: Em.computed.alias('controller.paper.figures')

  setupUpload: (->
    uploader = $('.js-jquery-fileupload')
    uploader.fileupload
      url: "/papers/#{@controller.get('paper.id')}/figures"
