Added card details shown detection and button creation