some refactoring in Card and CardActions