add loadUnreadMessage function