close prompt on submit (enter in text field)