changed unread/read notification logic