[fix] improve the formatting behaviour of creditcard pagelet