add query to index page