updated demo project to work with iOS 6