open the word details panel when a word is clicked