public tree view - refactor to use thing ids instead of generic counter in treeid