add tree menu support