refactor ActivitiesMixin