add type and key to iframeurl