Minor changes to AppDelegate

Minor changes to AppDelegate