wiring up the navigation