changes to make pressing Enter key work same as clicking button