Created main view and set it as central widget.