Implement unread message count in title
Handle message types more flexibly and make errors red