Update main nav code.