add AppDelegate modification
Merge pull request #318 from joshuastray/master

add AppDelegate modification