add class to correct hint element