added enter to submit function