added optional nav_class helper method for the li tags