modified MainFrame and MapFrame
modified treebutton:the tree is based on the xml file