update Xcode project settings for demo project
remove observer did not crash so added it back
better handle null rect