Setup markAsViewed to batch update