anchor.diff:      $("[data-action='cancel-edit']")
       .on("ajax:success", function(e, data) {
         var $form = $(this).closest("form");
  -
         $form.after(data.html);
         var $new_step = $(this).next();
         $(this).remove();
  
positive.code: 
    function toggleButtons(show) {
      if (show) {
        $("[data-action='new-step']").show();
        $("[data-action='edit-step']").show();
      } else {
        $("[data-action='new-step']").hide();
        $("[data-action='edit-step']").hide();
  
negative.code:       var $edit_step = $step.after(data.html);
        var $form = $step.next();
        $step.remove();
        formCallback($form);
        initEditableHandsOnTable($form);
        applyCancelCallBack();
  