fixing unread message count without page refresh