adding enter to submit functionality