on page update navigation also updates