new_row.find("button").each(function (index) {
                    start_id = $(this).attr("id");
                    splits = start_id.split("-");
                    splits[splits.length-1] = i+1;
                    new_id = splits.join("-");