fix navigation highlights

Correctly highlight the active page in the navigation bar