should be calling queryState on button click
Merge remote-tracking branch 'madwire/fix_query_state'