Filter in Gannt table doesnt work

Hello everyone, im new in dash that thats why i face few problems.i put here 3 dropdown menus in for gantt, i called them as tree1, tree2 and dropdown for projects. when i run the code i can see result on UI. But i have small problem. when i choose any projects in dropdown menu i can see it on a graph, but the thing is that, when i choose for example “2” in tree1, still i see all options in ‘tree2’. but actually it should be as a hirearchy. If i choose 2 in tree1 i should see only “2” and “5” in tree 2, as well as the project namse which is under 2 and 5 in tree2. but im not able to see it.
I would appreciate any help

Thanks