Implemented marking messages as read