adding query to html index