Improve Window sending data to iframe docs