i was wondering how you would make a menu with sub menus, I have part of the code done here but i need help making the selection create another menu or execute a command. Help pls

The part of the code i finished http://pastebin.com/puSP5HD9