changed action for adding index from method to `delayed`