core-4760 add loading gif to DE.
core-4736 added logic to prompt save on close