change index to root_path.