edit the add activity functionality