updates controller and index form