have you considered binding UI elements so it automatically updates after changing your data? or is that not flexible enough for your use case?
I've been binding some things but, my issue was more lack of python experience. In the example you linked for it to be private, it all has to be wrapped in a function like def homepage(): testLabel = ui.label("test") But on callbacks I would define them outside the homepage scope. Then it was like, how the heck do I reference testLabel from the callback?