Adds refine query functionality to word cloud view.