refactor highlighting in tree panels
refactor undo/redo a little bit more
a subroutine i might need later
fix comment
start of other tree panel type