be more smart about detecting iframe element