Create callback inside a callback?

It’s not, see Dynamic Controls and Dynamic Output Components