tidy activityController