Creates the popup that lets us know we have unsaved changes and asks us to confirm that we want to discard the changes or not