modified card_view.js