highlighting the words dynamically on the fly