Update controller and index files