refactored the sub navigation generation code to allow generated sub menu to be less obtrusive and easier to remove.