Implemented cross-domain communication to allow header dialog to close on save