adding the main view