check path to set navitem active