change search function

searches when enter is pressed