stop GUI from closing on submit