Adding the main view structure