updated todos index and api