added code to submit with the enter key