re-implement activity.delete & activity.put in the frontend