Set the following in order to allow you to define callbacks for elements not rendered when the page loads. See dcc.Tabs: Filling tabs with dynamic content. How to organize the callbacks? for more detail and possibly some helpful links.
app.config['suppress_callback_exceptions'] = True