create index view with dynamic erb