update badge of messages