Changed iframe function