adding controller indexes to all models