building nav tree elements and objects, for issue #4