Added find index function to index render