updating search to only happen on enter key press