tree controller