add the main view