add delete activity function