before removing iframe