Added a dialog box

Added a function to show a dialog box when the user leaves the update
account window... Needs some more work.