Update AppDelegate