added nav tree functionality