Added modules, integrated tree and dynamic adding of history panes