not to show modal when 2nd tab is selected
discardChanges