Changed the assigning of the navigationItems.