Moved tree action to TreeController