update nav on scroll event