refactored card actions