Creating activities in controllers