Moved the nav menu function into the tags file