fix issue of nav bar highlighting on page refresh