Updates query selector