Added query and query reference in html file