Prevent replacement of content when refreshing dialog.