# app/avo/resources/movie.rb
class Avo::Resources::Movie < Avo::Resources::ArrayResource
  self.components = { # [!code ++]
    "Avo::Views::ResourceIndexComponent": Avo::Views::ResourceCustomIndexComponent # [!code ++]
  } # [!code ++]

  # ...
end
```

Now when you visit the Movies resource page, it will render the custom component, currently just showing the placeholder text.

<Image src="/assets/img/guides/index_messages/custom_index_component_1.png" width="1494" height="677" alt="Empty component as index" />

## Render the parent view and add your message

Next, let's modify the component so it wraps the original Avo index component and adds a message on top.

Avo will now call this custom component first, let's update the Ruby component file to store all keyword arguments, and use those to render the parent component.

```ruby