generate nested nav