add event to search text