Added warning when closing with unsaved changes and stop showing warning when
focusing and unfocusing a text box without editing it