added function that get qeury strign on load page