[junjiang2] add query dialogs