         ui.placeholder.hide()
         ui.helper.css "width", ui.item.width()
         ui.helper.css "height", ui.item.height()
+    remove: (event, ui)->
+      if @duplicate and @clone
+        $(this).replaceWith(@clone)
+        makeSortable el, duplicate
   ).disableSelection()
   return

  return
makeSortable = (el, duplicate) ->
  $("ul.ui-model-blocks", el).sortable(
    connectWith: "#content ul.ui-model-blocks",
    appendTo: 'body',
    tolerance: 'pointer',
    helper: (event, obj) ->

      @duplicate = duplicate
      @evaluateRefreshable = ->
        not @duplicate or not $(this).is(@stockedUl)
      if @duplicate
        @clone = $(this).clone()
    start: (event, ui)->
      if @duplicate
        ui.placeholder.hide()
