updated dynamic connectivity demo for latest spectrum api changes