Added functionality to handle clicking on words and showing them.