How to edit, duplicate or delete an activity