queries button update