Add activities and subactivities