Refactor nav_link helper