update tree component