fixed bug #231, so now typeahead works and user can submit by pressing enter key