Refactored credit_card index to use credit-card-view directive