Activities controller

wrote methods for activities controller