fixed bugs related to iframes