rewrote logic for sub nav items