pass the modelName to the resourceIndex handler