rename activities and delete old activities