Adding LifecycleCallbacks to the repo