update header on route change