card detection and automatic link generation