I think we can do the same solution as in the widget here and move the observer to the `startApp()` function. This way, the code is almost the same (we are repeating, I know) and all is more regular. What do you think?