modified page exit warning to enable warning when input field contents change