Created main view.