Layout main view.