Show a spinner while loading. Handle being framed.
Fixed a bug that caused dialogs to not be saved in the page for later use.