added capture of query string; put it in the title