made loop for navigation and set up variables to enable / disable nav items.