set up tree navigation