add join activity function.