add query args to index method.