You do in fact need to create every callback that your app will ever use up front before it starts running. And yes, you’ll need to create unique IDs for the output elements. There’s been some discussion of this before on the forum. In particular, see Callback for Dynamically created Graph.