check unread on popup unload