Initialize the main view controller with the API key received