updated AJAX to set item as read