medicine index controller