LPS-50462  Change restoreDialog functionality to not apply delegate to body