mark messages as read and unread