revised to insert iframe