changes index to demo