new index method to handle animal names. Links to base template. Fixed index range bug