Help understanding how to make a command stack editor..

can someone help me understand how to make a command stack editor for my smash bros game?

basicly I want a editor that I can select a action or subaction and the add or delete commands that run in the order they are listed

right now I got my window up however I can seem to figure out how to add a stack window for editing commands.

I would also like help on implementing the command functionality for my states

this is my current code

using UnityEngine;
using UnityEditor;
using System.Collections;


//[CustomEditor( typeof(Charater) )]
public class CharaterEditor : EditorWindow {

    //Variables
    int subaction = 0;

    // Show Window
    [MenuItem ("Window/CharaterEditor")]
    private static void ShowWindow() {
        EditorWindow.GetWindow(typeof(CharaterEditor), false);
    }


    [MenuItem ("Window/CharaterEditor", true)]
    private static bool ValidateEditor()
    {
        return true;
    }

    void OnSelectionChange()
    {
        Debug.Log("Test");
    }


    private void OnGUI()
    {
        string[] options = new string[]
        {
            "Wait", "WalkSlow", "WalkMedium", "WalkFast"
        };
        subaction = EditorGUILayout.Popup("SubActions", subaction, options);
    }

}

EDIT:
here
is a picture of what it would kinda look like

ok so I still need this
here is the code I posted over at unity answers

[LIST=1]
[*]//[CustomEditor( typeof(Charater) )]
[*]publicclassCharaterEditor:EditorWindow{
[*]//Variables
[*]int subaction =0;
[*]int page =0;
[*]int subpage =0;
[*]//Objects
[*]Rect pane1;
[*]// Show Window
[*][MenuItem("Window/CharaterEditor")]
[*]privatestaticvoidShowEditor(){
[*]//EditorWindow.GetWindow(typeof(CharaterEditor), false);
[*]CharaterEditor window1 =EditorWindow.GetWindow<CharaterEditor>("Action");
[*]CharaterEditor window2 =EditorWindow.GetWindow<CharaterEditor>("Attributes",true,typeof(CharaterEditor));
[*]window1.Init();
[*]window2.Init();
[*]}
[*]publicvoidInit()
[*]{
[*]pane1 =newRect(0,0,400,100);
[*]}
[*]privatevoidOnGUI()
[*]{
[*]//string[] options = new string[]
[*]//{
[*]// "Wait", "WalkSlow", "WalkMedium", "WalkFast"
[*]//};
[*]//subaction = EditorGUILayout.Popup("SubActions", subaction, options);
[*]BeginWindows();
[*]pane1 =GUILayout.Window(1, pane1,null,"Pane 1");
[*]EndWindows();
[*]if(GUI.Button(newRect(0,0,100,16),"Actions")) page =0;
[*]if(GUI.Button(newRect(100,0,100,16),"Attributes")) page =1;
[*]if(page ==0)
[*]{
[*]if(GUI.Button(newRect(10,40,100,30),"SubActions")) subpage =0;
[*]}
[*]}
[*]//[MenuItem ("Window/CharaterEditor", true)]
[*]//private static bool ValidateEditor()
[*]//{
[*]// return true;
[*]//}
[*]voidOnSelectionChange()
[*]{
[*]Debug.Log("Test");
[*]}
[*]}
[/LIST]

I need to remove the title bar on the pane is that possible?