add controller for trees