Refactor view.