add apiKey property to custom view