preview message in messages table fixed