preview links with wms or wfs in link

Geoserver doesn't require service=wms or service=wfs so just display the Preview button if wms or wfs in in the link.