tree: Implement dispatching events