Add dismiss handler block, fix some error for Objc demo