Add search event functionality