misc: refactoring of CardOverlay