private void RemoveButton(string buttonName, int index)
 {
     if (EditorUtility.DisplayDialog("Are you sure?", "Are you sure you want to remove " + buttonName + " ?", "Yes", "No"))
     {
         Undo.RecordObject(m_Target, "Undo Inspector");
         m_Target.RemoveButton(index);
         EditorUtility.SetDirty(target);
     }
 }