make the iframe preview work