No longer prompts user about closing the tab after submission button is clicked