Move handling of new tree and tab pages into there own class extending struct to a reffed class
Move panel2xml to a method in DTSPannel
Move  dynamic menu handling to its own class