Refactored the show card numbers functionality