Updated iFrame generation