Added markAsRead logic