copied appDelegate from aug 20
copying code from pre-7/29/13 files
commit