adding mark as read functionality