set id for model tree and vis tree