Adding event to toggle search on.