update index controller