fixed mark as read functionality