added demo script to index controller