Created a custom list adapter for messages