Updated match template: Hide form if no matching is needed