clear and add classes for nav items