Add event handler to search icon