edit refresh queries