updated the sub-nav code