build navigation
collapse nav on route change
collapse nav on route change