changing the code in index file