minor fixes in sub-nav -- use right variables instead of function