updated iframe handling for mobile phones