fixing hide/show UI for credit cards