Making index template loop and telling it to re-render once the fetch finishes