Reformatted app/controllers/ActivityController.