Refactor nav active class, closes #168