smarter way to set active nav