Adding index to todos