added the logic to show the message when deleted from the UIsearchBar