dynamic add tree menu