add tree visualization