Created the loops for the nav bar