switch autoQuery on/off for page and selection