ref #44 put tag with the selected word in the right place