Code refactoring: add tabs_for method to NavHelper class.