run query button complete