updated all samples for new viewer version