trying to fix logic for sub nav