Remove information in the local storage when closing the dialog.
Add debug to see the content of the scope.