add query_i, query_j, update index.html