add activity loop