add activity directive