migrated ad-card to directive