implement template on WMS