set query field intially by url