fixing sub nav logic