improve deletion of activities