Better handling of iframe