add conditional handler for addcontent fields