add index controler