connected tree to gui. Does not work yet. All around problem with the
parser