client side of prepopulate tree