create index controller