init iframe as a callback