added styling and functionality for activities