display generated ES query in interface

fixes #376