added tree form behavior