Using message in list to display the messages in the search