Update AppDelegate.cpp