update view and controller