Refactored print_secondary_nav function to use print anchor function since the code was the same.