submit button automatically closes window?