add generate_nav_links method