Refactoring layout view.