adjusts styles, fixes cardCounter bug