added iframe check