search field is emptied on selection