update tree menu widget