nit: let's group the event listener appwillopen/apploadtime and activitywillopen/activityloadtime together (instead of interlacing)