replace input view by output view.