implement click event for wordcloud