update sample for iframe