added handlers to submit on enter