added functionality to see if thread is unread by the user