modified getIframeBlockId method