add dynamic attributes to nav items