pass request to index template