changes for replay and storage of iFrame for key input