Added delete activity function