update AppDelegate.m