add activity is functional