app: Add the app state events