fix bug to AJAX for Decks
added AJAX for Cards