updated index controller