add index controller.