made search on enter hit in the search bar more reliable