iframe wasn't working because i forgot to call the function