ctx_new moved inside iframe to avoid inconsistencies, stream with commands added