fix active state for ascendant pages in tree menu