added match check to nav