made the navigation menu take in an array of link information and generate the list dynamically