Made the nav pill active class follow the active page being displayed.