Add app status change handler