create main view