refactored browsertree/model