add openIframe function to open a iframe window