adding main view