creating a list layout for messages