Refactoring view.