update edit controller.