added autofill and Enter key to submit/generate