Adding the main view